package com.atguigu.chaptar1

object $02_if {
  def main(args: Array[String]): Unit = {
    val a = 10
    val b = if(a%2==0){
      println("a是2的倍数")
      ""
    }else if(a%3 == 0){
      println("a 是3的倍数")
    }else{
      println("a是其他的倍数")
    }

  }
}
